<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<!--标准mui.css-->
		<link rel="stylesheet" href="../css/mui.min.css">
		<style type="text/css">
			.footer {
				text-align: center;
				margin: 15px 0 0;
				font-size: 12px;
				color: #D0D0D0;
			}
		</style>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">设置</h1>
		</header>
		<div class="mui-content mui-scroll-wrapper">
			<div class="mui-scroll">
				<ul class="mui-table-view" style="margin-top: 10px">
					<li id="slider_switch" class="mui-table-view-cell">
						回复小尾巴
						<div class="mui-switch" id="replyweiba">
							<div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell">
						作者
						<span class="mui-pull-right">
							朋也
						</span>
					</li>
					<li class="mui-table-view-cell">
						版本
						<span class="mui-pull-right">
							1.0.1
						</span>
					</li>
					<li class="mui-table-view-cell">
						QQ群
						<span class="mui-pull-right">
							419343003
						</span>
					</li>
					<li class="mui-table-view-cell">
						<a href="mailto:liygheart@qq.com">
							反馈
						</a>
					</li>
				</ul>
				<div class="footer">
					&copy; 2016 朋也<br>
					Powered By jfinalbbs.com
				</div>
			</div>
		</div>
		<script src="../js/mui.min.js"></script>
		<script src="../js/jquery.min.js"></script>
		<script src="../js/common.js"></script>
		<script type="text/javascript" charset="utf-8">
			var index;
			mui.init();
			mui.plusReady(function(){
				//获得主页面webview引用；
				index = plus.webview.currentWebview().opener();
				if(isLogin()) {
					mui.fire(index, "hideCreateTopic");
				}
				if(plus.storage.getItem(reply_weiba_active) == 'true') {
					$("#replyweiba").addClass("mui-active");
				} else {
					$("#replyweiba").removeClass("mui-active");
				}
				$("#replyweiba").click(function() {
					if($(this).hasClass("mui-active") == true) {
						plus.storage.setItem(reply_weiba_active, 'true');
					} else {
						plus.storage.setItem(reply_weiba_active, 'false');
					}
				})
			});
		</script>
	</body>

</html>